namespace Abp0713Demo.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class HistoryDemo_update_id : DbMigration
    {
        public override void Up()
        {
            DropPrimaryKey("dbo.HistoryDataTables");
            DropPrimaryKey("dbo.PointInfoes");
            AlterColumn("dbo.HistoryDataTables", "PointId", c => c.Int(nullable: false));
            AlterColumn("dbo.PointInfoes", "Id", c => c.Int(nullable: false));
            AddPrimaryKey("dbo.HistoryDataTables", new[] { "PointId", "Id" });
            AddPrimaryKey("dbo.PointInfoes", "Id");
        }
        
        public override void Down()
        {
            DropPrimaryKey("dbo.PointInfoes");
            DropPrimaryKey("dbo.HistoryDataTables");
            AlterColumn("dbo.PointInfoes", "Id", c => c.Int(nullable: false, identity: true));
            AlterColumn("dbo.HistoryDataTables", "PointId", c => c.Int(nullable: false, identity: true));
            AddPrimaryKey("dbo.PointInfoes", "Id");
            AddPrimaryKey("dbo.HistoryDataTables", "PointId");
        }
    }
}
